package com.hera.process.config.domain;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import com.hera.base.domain.BaseDomain;


@Entity
@Table(name="PROFILE")
public class Profile extends BaseDomain implements Serializable{

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "SEQ_PROFILE")
	@TableGenerator(name = "SEQ_PROFILE", table = "sequence", pkColumnName = "seq_name", 
	valueColumnName = "seq_id",         pkColumnValue = "Profile", allocationSize = 1)
	@Column(name="ID_PROFILE")	
	private Long idProfile;
	@Column(name="NAME")	
	private String name;
	@Column(name="DESCRIPTION")	
	private String description;
	@ManyToOne
	@JoinColumn(name="STATUS_PD")
	private Parameter status;
	
	@Transient
	private
	HashMap<Long, List<Option>> opciones;
	
	public Profile() {
	}

	public Long getIdProfile() {
		return idProfile;
	}

	public void setIdProfile(Long idProfile) {
		this.idProfile = idProfile;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Parameter getStatus() {
		return status;
	}

	public void setStatus(Parameter status) {
		this.status = status;
	}

	public HashMap<Long, List<Option>> getOpciones() {
		return opciones;
	}

	public void setOpciones(HashMap<Long, List<Option>> opciones) {
		this.opciones = opciones;
	}
	
	
}
